/*
 * @Author: your name
 * @Date: 2022-01-24 14:49:28
 * @LastEditTime: 2022-01-24 15:00:53
 * @LastEditors: LAPTOP-L472H14P
 * @Description: In User Settings Edit
 * @FilePath: \react_front_engineer\src\NodeJs\express\接口编写\apiRouter.js
 */
const express = require('express')
const router = express.Router()
router.get('/list', (req, res) => {
  console.log(req.query)
  res.send({
    statuCode: 200,
    msg: '请求成功',
    data: req.query
  })
});
router.post('/detail', express.json(),(req, res)=>{
    res.send({
        statusCode: "200",
        msg:"",
        data: req.body
    })
})
module.exports = router
